package weibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CommentList {
    @ApiModelProperty(value = "评论id")
    private Integer id;
    @ApiModelProperty(value = "评论内容")
    private String content;
    @ApiModelProperty(value = "评论创建时间")
    // 设置时间格式
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date created;
    @ApiModelProperty(value = "评论用户昵称")
    private String nickname;
}
